<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<f:view>
	<h:head>
		<title>Register</title>
		<h:outputStylesheet library="css" name="bootstrap.css" />
		<h:outputStylesheet library="css" name="bootstrap.min.css" />

	</h:head>
	<h:body>
		<div class="modal">
			<div class="modal-header">
				<h3>
					<h:outputText value="#{taskBean.fullName}" />
				</h3>
				<h5>
					<h:outputText value="#{taskBean.date}" />
				</h5>
			</div>
			<h:form styleClass="form-horizontal modal-form">
				<div class="modal-body">
					<div class="control-group">
						<h:outputLabel value="Event*:" styleClass="control-label"
							for="inputEvent" />
						<div class="controls">
							<h:inputText id="inputEvent" value="#{taskBean.task.event}" />
						</div>
					</div>
					<div class="control-group">
						<h:outputLabel value="Time*:" styleClass="control-label"
							for="inputTime" />
						<div class="controls">
							<h:inputText id="inputTime" value="#{taskBean.task.time}" />
						</div>
					</div>
					<div class="control-group">
						<h:outputLabel value="Estimate duration*:"
							styleClass="control-label" for="inputEstimateduration" />
						<div class="controls">
							<h:inputText id="inputEstimateduration"
								value="#{taskBean.task.estimateDuration}" />
						</div>
					</div>
					<div class="control-group">
						<h:outputLabel value="Actual duration:" styleClass="control-label"
							for="inputActualduration" />
						<div class="controls">
							<h:inputText id="inputActualduration"
								value="#{taskBean.task.actualDuration}" />
						</div>
					</div>
					<div class="control-group">
						<h:outputLabel value="Comments:" styleClass="control-label"
							for="inputComments" />
						<div class="controls">
							<h:inputText id="inputComments" value="#{taskBean.task.comments}" />
						</div>
					</div>
					<h:panelGroup class="alert alert-error" style="display:block"
						rendered="#{taskBean.errorMessage != null}">
						<strong>Error occured! </strong>
						<h:outputText value="#{taskBean.errorMessage}" />
					</h:panelGroup>
				</div>
				<div class="modal-footer">
					<h:commandButton value="Save" styleClass="btn btn-primary"
						action="#{taskBean.save}" />
					<h:link value="Cancel" styleClass="btn" outcome="daily_plan"/>
				</div>
			</h:form>
		</div>
	</h:body>
</f:view>
</html>